package com.chaopei.order_mng.service.impl;

import com.chaopei.order_mng.entity.OrderDetail;
import com.chaopei.order_mng.mapper.OrderDetailMapper;
import com.chaopei.order_mng.service.OrderDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Corday 天涯
 * @Date 2022/5/11 22:50
 */
@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    @Resource
    private OrderDetailMapper orderDetailMapper;
    @Override
    public String saveOrderDetail(List<OrderDetail> orderDetails) {
        int num=orderDetailMapper.insertOrderDetail(orderDetails);
        return num>0?"订单详情表添加成功":"订单详情表添加失败";
    }
}
